package com.city.service.pub.impl;

import com.city.domain.pub.PubFiletype;
import com.city.repository.pub.PubFiletypeRepository;
import com.city.service.pub.PubFiletypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @deprecation: 上传文件类型
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-18 13:14
 */
@Service
public class PubFiletypeServiceImpl implements PubFiletypeService {

    @Autowired
    private PubFiletypeRepository filetypeRepository;

    @Override
    public List<PubFiletype> getAll() {
        return filetypeRepository.findAll();
    }

    @Override
    public PubFiletype getFileTypeByName(String name) {
        return filetypeRepository.getFileTypeByName(name);
    }
}
